import request from '@/utils/request'

// 查询岗位设置列表
export function listPositionSettings(query) {
  return request({
    url: '/compensationManagement/positionSettings/list',
    method: 'get',
    params: query
  })
}

// 查询岗位设置详细
export function getPositionSettings(positionId) {
  return request({
    url: '/compensationManagement/positionSettings/' + positionId,
    method: 'get'
  })
}

// 新增岗位设置
export function addPositionSettings(data) {
  return request({
    url: '/compensationManagement/positionSettings',
    method: 'post',
    data: data
  })
}

// 修改岗位设置
export function updatePositionSettings(data) {
  return request({
    url: '/compensationManagement/positionSettings',
    method: 'put',
    data: data
  })
}

// 删除岗位设置
export function delPositionSettings(positionId) {
  return request({
    url: '/compensationManagement/positionSettings/' + positionId,
    method: 'delete'
  })
}
